using System;
using Server;

namespace Server.Items
{
	public class CBookNPCCommands : BaseBook
	{
		public static readonly BookContent Content = new BookContent
		(
			"NPC Commands", "Safera",

			new BookPageInfo
			(
				"INTERACTING WITH NPCs",
				"",
				"SAY TO GENERAL NPC's",
				"",
				"Vendor buy	",
				"Brings up the",
				"shopkeeper's inventory",
				"of items for sale. You"
			),
			new BookPageInfo
			(
				"can select items for",
				"purchase by",
				"double-clicking on the",
				"item or by using the +",
				"key located on the",
				"right side of the menu.",
				"",
				"Vendor sell	"
			),
			new BookPageInfo
			(
				"Brings up a list of",
				"items in your backpack",
				"that the shopkeeper is",
				"able to purchase. You",
				"can select an item to",
				"sell by double-clicking",
				"on that item, or by",
				"using the + key located"
			),
			new BookPageInfo
			(
				"on the right side of",
				"the menu.",
				"",
				"[Name] train	",
				"Brings up a list of all",
				"the skills that the NPC",
				"can teach (if any).",
				""
			),
			new BookPageInfo
			(
				"[Name] train [skill]	",
				"The vendor will quote a",
				"price in gold that must",
				"be paid before he can",
				"train you in the",
				"specified skill. Once",
				"the fee is paid, your",
				"skill (the one"
			),
			new BookPageInfo
			(
				"specified in the",
				"command) will raise.",
				"",
				"Destination	",
				"When used around escort",
				"NPCs, the NPC will bark",
				"out information on",
				"where he/she needs to"
			),
			new BookPageInfo
			(
				"go.",
				"",
				"I will take thee	",
				"Used around an escort",
				"NPC to except an",
				"escort. The NPC will",
				"then begin to follow",
				"you. Once you escort"
			),
			new BookPageInfo
			(
				"the NPC to its",
				"requested destination,",
				"it will usually offer",
				"some kind of payment in",
				"return.",
				"",
				"[Name] move	",
				"Causes the NPC to step"
			),
			new BookPageInfo
			(
				"away from you.",
				"",
				"[Name] time	",
				"The NPC will tell you",
				"the current time.",
				"",
				"[Name] where is",
				"[town/shop/building]	"
			),
			new BookPageInfo
			(
				"The NPC will offer",
				"directions to the",
				"specified",
				"town/shop/building.",
				"",
				"News	",
				"Can be said to a",
				"Barkeep or a Towncryer"
			),
			new BookPageInfo
			(
				"to hear news of any",
				"current scenarios.",
				"",
				"[Guard Name] order",
				"shield	",
				"If you are in an Order",
				"guild, you can use this",
				"command around the"
			),
			new BookPageInfo
			(
				"guards inside Lord",
				"British's castle to get",
				"a free Order shield.",
				"",
				"[Guard Name] chaos",
				"shield	",
				"If you are in a Chaos",
				"guild, you can use this"
			),
			new BookPageInfo
			(
				"command around the",
				"guards inside Lord",
				"Blackthorn's castle to",
				"get a free Chaos",
				"shield.",
				"",
				"SAY TO NPC",
				"BANKER/MINTER"
			),
			new BookPageInfo
			(
				"",
				"Balance",
				"Statement",
				"The banker will tell",
				"you the amount of gold",
				"in your bankbox.",
				"",
				"Bank	"
			),
			new BookPageInfo
			(
				"The banker will open",
				"your bankbox for you.",
				"",
				"Check [amount]	",
				"If you have the gold",
				"specified in your bank,",
				"a bank check of that",
				"value will be placed in"
			),
			new BookPageInfo
			(
				"your bank box and the",
				"gold will be removed.",
				"(between 5,000 and",
				"1,000,000 gold)",
				"",
				"SAY TO NPC BARKEEP",
				"",
				"News	"
			),
			new BookPageInfo
			(
				"The barkeep will give a",
				"scenario hint, just",
				"like a town crier.",
				"",
				"(giving money)	",
				"Amounts of gold under",
				"50 gold will cause the",
				"Barkeep to speak this"
			),
			new BookPageInfo
			(
				"rumor. Amounts over 50",
				"gold will be returned.",
				"Will only work if the",
				"owner did indeed give",
				"the barkeep a rumor to",
				"spread.",
				"",
				"(saying a keyword)	The"
			),
			new BookPageInfo
			(
				"Barkeep will respond to",
				"a maximum of three",
				"keywords. Owners can",
				"set the keywords the",
				"Barkeep will respond to",
				"and the response the",
				"Barkeep will give.",
				""
			),
			new BookPageInfo
			(
				"SAY TO BROKER",
				"",
				"Appraise	",
				"The Real Estate Broker",
				"will tell you how much",
				"he will pay you for a",
				"house deed you wish to",
				"sell to him. If you"
			),
			new BookPageInfo
			(
				"wish to sell then drop",
				"the house deed on the",
				"broker after he",
				"mentioned the price.",
				"The gold will be",
				"deposited in your bank",
				"box.",
				""
			),
			new BookPageInfo
			(
				"SAY TO ESCPRTS",
				"",
				"I will take thee	",
				"Will make the NPC who",
				"is waiting for an",
				"escort to follow you.",
				"You must be close to",
				"the NPC when you issue"
			),
			new BookPageInfo
			(
				"this command.",
				"",
				"Destination	",
				"Will make the NPC tell",
				"you where he wants to",
				"be escorted to.",
				"",
				"SAY TO HIRELINGS"
			),
			new BookPageInfo
			(
				"",
				"[Name] come	",
				"Calls the hired NPC to",
				"your location.",
				"",
				"[Name] follow (target",
				"required)	",
				"The NPC will follow the"
			),
			new BookPageInfo
			(
				"specified target.",
				"",
				"[Name] follow me	",
				"The NPC will follow",
				"you.",
				"",
				"[Name] guard (target",
				"required)	"
			),
			new BookPageInfo
			(
				"The NPC will guard the",
				"specified target.",
				"",
				"[Name] guard me	",
				"The NPC will guard you.",
				"",
				"[Name] drop	",
				"The NPC will drop all"
			),
			new BookPageInfo
			(
				"items it's holding to",
				"the ground.",
				"",
				"[Name] friend (target",
				"required)	",
				"The NPC will treat the",
				"specified person as",
				"another owner."
			),
			new BookPageInfo
			(
				"",
				"[Name] hire",
				"[Name] mercenary",
				"[Name] work",
				"[Name] servant",
				"The NPC will quote the",
				"price in gold that it",
				"cost you to hire it."
			),
			new BookPageInfo
			(
				"Once the gold is given",
				"to the NPC, it will",
				"work for you.",
				"",
				"[Name] kill (target",
				"required)",
				"[Name] attack (target",
				"required)"
			),
			new BookPageInfo
			(
				"Commands the NPC to",
				"kill/attack the",
				"specified target.",
				"",
				"[Name] move",
				"Causes the NPC to step",
				"away from you.",
				""
			),
			new BookPageInfo
			(
				"[Name] patrol",
				"Causes the NPC to",
				"patrol the immediate",
				"area around it.",
				"",
				"[Name] report",
				"The NPC will respond",
				"with a message that"
			),
			new BookPageInfo
			(
				"will tell you how they",
				"feel about their job.",
				"",
				"[Name] stay",
				"Commands the NPC to",
				"stop and stay in one",
				"spot.",
				""
			),
			new BookPageInfo
			(
				"[Name] stop",
				"Commands the NPC to",
				"stop all actions.",
				"",
				"Withdraw [amount]	",
				"Will place [amount] of",
				"gold from your bankbox",
				"in your backpack, if"
			),
			new BookPageInfo
			(
				"possible.",
				"",
				"[Name] transfer (target",
				"required)",
				"Transfers ownership of",
				"the NPC to the",
				"specified target.",
				""
			),
			new BookPageInfo
			(
				"STABLE COMMANDS",
				"(commands must be said",
				"near a stablemaster)",
				"",
				"Claim/Retrieve ",
				"The stablemaster will",
				"return any pets that",
				"you have stabled with"
			),
			new BookPageInfo
			(
				"him.",
				"",
				"Stable (target",
				"required)	",
				"Stables the targeted",
				"pet with the",
				"stablemaster.",
				""
			),
			new BookPageInfo
			(
				"TELEPORTER COMMAND",
				"",
				"Doracron	",
				"Will activate the",
				"Serpent Pillars in the",
				"sea in Britannia and",
				"teleport you to the sea",
				"in the Lost Lands."
			),
			new BookPageInfo
			(
				"",
				"Recdu	",
				"Will activate the",
				"teleporter in the north",
				"mage shop in Moonglow",
				"and teleport you to the",
				"mage shop in Papua.",
				""
			),
			new BookPageInfo
			(
				"Sueacron	",
				"Will activate the",
				"Serpent Pillars in the",
				"sea in the Lost Lands",
				"and teleport you to the",
				"sea in Britannia.",
				"",
				"Recsu	"
			),
			new BookPageInfo
			(
				"Will activate the",
				"teleporter in the mage",
				"shop in Papua and",
				"teleport you to the",
				"north mage shop in",
				"Moonglow.",
				"",
				"SAY TO TOWNCRYER"
			),
			new BookPageInfo
			(
				"",
				"news	",
				"The Towncryer will give",
				"you a bit of news, if",
				"he has some. Repeat the",
				"command to hear the",
				"next bit of news.",
				""
			),
			new BookPageInfo
			(
				"SAY TO VENDOR/PLAYER",
				"",
				"[Name] browse",
				"[Name] view",
				"[Name] look",
				"Will open the bacpack",
				"of the vendor for you",
				"so you can see what is"
			),
			new BookPageInfo
			(
				"inside. This acts the",
				"same as double-clicking",
				"on a vendor.",
				"",
				"[Name] buy",
				"[Name] purchase",
				"You will get a",
				"targeting cursor with"
			),
			new BookPageInfo
			(
				"which you can select",
				"the item you want to",
				"buy. If you do not have",
				"enough gold in your",
				"backpack the amount",
				"will be taken straight",
				"out of your bankbox.",
				""
			),
			new BookPageInfo
			(
				"[Name] collect",
				"[Name] gold",
				"[Name] get	",
				"If you are the owner of",
				"the vendor, he will",
				"give you the gold he is",
				"holding. The amount",
				"will be in gold if less"
			),
			new BookPageInfo
			(
				"than 5000, or as a bank",
				"check if 5000 or more.",
				"The largest check one",
				"can receive is for one",
				"million gold, if the",
				"vendor holds more than",
				"that another request",
				"has to be made by the"
			),
			new BookPageInfo
			(
				"owner to collect the",
				"rest.",
				"",
				"[Name] status",
				"[Name] info",
				"If you are the owner of",
				"the vendor, he will",
				"tell you how much gold"
			),
			new BookPageInfo
			(
				"he is holding, how much",
				"he costs per UO day and",
				"for how many days he",
				"will continue to work",
				"for you.",
				"",
				"[Name] dismiss	",
				"If you are the owner of"
			),
			new BookPageInfo
			(
				"the vendor, he will",
				"terminate the contract",
				"of employment with you.",
				"The Vendor will",
				"self-destruct, leaving",
				"no corpse. Any items or",
				"gold he is holding will",
				"not be reimbursed, so"
			),
			new BookPageInfo
			(
				"remove all tiems and",
				"issue a 'collect'",
				"command first.",
				"",
				"SAY IN VENDOR SHOP",
				"",
				"[Name] buy	",
				"The inventory of the"
			),
			new BookPageInfo
			(
				"vendor will be shown to",
				"you. You can select",
				"which items you want to",
				"buy. You need to have",
				"the gold for the",
				"purchase on you, except",
				"when buying for a total",
				"of more than 2000gp,"
			),
			new BookPageInfo
			(
				"i.e. tents, houses,",
				"boats, guildstones or",
				"say *a lot* of",
				"reagents. In that case",
				"the amount will be",
				"taken straight out of",
				"your bankbox and you",
				"receive the item(s) you"
			),
			new BookPageInfo
			(
				"purchased in your",
				"backpack.",
				"",
				"[Name] sell	",
				"The items in your",
				"backpack that can be",
				"sold to the vendor will",
				"be shown to you. You"
			),
			new BookPageInfo
			(
				"can select which items",
				"you want to sell. There",
				"is a maximum of 5 items",
				"per transaction."
			)
		);

		public override BookContent DefaultContent{ get{ return Content; } }

		[Constructable]
		public CBookNPCCommands() : base( 0xFF2, false )
		{
			Hue = 0;
		}

		public CBookNPCCommands( Serial serial ) : base( serial )
		{
		}

		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.WriteEncodedInt( (int)0 );
		}

		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadEncodedInt();
		}
	}
}